package com.xuecheng.auth.controller;

import com.xuecheng.ucenter.model.dto.FindPswDto;
import com.xuecheng.ucenter.service.VerifyService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杨振华
 * @since 2023/11/2
 */
@RestController
@Slf4j
public class FindPasswordController {

    @Autowired
    VerifyService verifyService;

    // todo 找回密码出现403异常
    @ApiOperation(value = "找回密码", tags = "找回密码")
    @PostMapping("/findpassword")
    public void findPassword(@RequestBody FindPswDto findPswDto) {
        verifyService.findPassword(findPswDto);
    }
}
